import numpy as np temp = np.array([1, 2, 3, 4], [3, 4, 5, 6]) np.unique(temp) # a1([1, 2, 3, 4, 5, 6])